package com.mxf.code.strategy_factory.service.impl;

import com.mxf.code.strategy_factory.request.StatisticsRequest;
import com.mxf.code.strategy_factory.response.BaseResponse;
import com.mxf.code.strategy_factory.response.VegetableAvailabilityListResponse;
import com.mxf.code.strategy_factory.service.AnalysisTableService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author mxf
 * @version 1.0
 * @description: 蔬菜
 * @date 2023/5/26
 */
@Service("vegetableAnalysisTableService")
public class VegetableAnalysisTableServiceImpl implements AnalysisTableService {
    @Override
    public List<BaseResponse> getChartData(StatisticsRequest requestParams) {
        return null;
    }

    @Override
    public List<BaseResponse> getListData(StatisticsRequest statisticsRequest) {
        List<VegetableAvailabilityListResponse> resultList = new ArrayList<>();
        VegetableAvailabilityListResponse vegetableAvailabilityListResponse = new VegetableAvailabilityListResponse();
        vegetableAvailabilityListResponse.setXDate("");
        vegetableAvailabilityListResponse.setVegetableName("");
        vegetableAvailabilityListResponse.setSalesVolume(0.0D);
        vegetableAvailabilityListResponse.setSalesAmount(new BigDecimal("0"));
        resultList.add(vegetableAvailabilityListResponse);
        return new ArrayList<>(resultList);
    }
}
